﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SmartSiteManagementSystem.Models.User
{
    [Serializable]
    public class UserHealthMonitorInfo
    {


        #region Model
        private int _logId;
        /// <summary>
        /// 自增Id
        /// </summary>
        public int LogId
        {
            set { _logId = value; }
            get { return _logId; }
        }


        private int _userid;
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId
        {
            set { _userid = value; }
            get { return _userid; }
        }

        /// <summary>
        /// 
        /// </summary>
        private double _heartBeat;
        /// <summary>
        /// 心跳 
        /// </summary>
        public double HeartBeat
        {
            get { return _heartBeat; }
            set { _heartBeat = value; }
        }


        private double _temperature;
        /// <summary>
        /// 体温 
        /// </summary>
        public double Temperature
        {
            get { return _temperature; }
            set { _temperature = value; }
        }



        private int _statusType;
        /// <summary>
        /// 状态 备用字段
        /// </summary>
        public int StatusType
        {
            set { _statusType = value; }
            get { return _statusType; }
        }


        private DateTime _collectTime = DateTime.Now;
        /// <summary>
        /// <para>收集时间</para>
        /// </summary>
        public DateTime CollectTime
        {
            get { return _collectTime; }
            set { _collectTime = value; }
        }

        public string CollectTimeStr { get { return _collectTime.ToString("yyyy-MM-dd HH:mm:ss"); } }



        private DateTime _createTime = DateTime.Now;
        /// <summary>
        /// <para>创建时间</para>
        /// </summary>
        public DateTime CreateTime
        {
            get { return _createTime; }
            set { _createTime = value; }
        }

        public string CreateTimeStr { get { return _createTime.ToString("yyyy-MM-dd HH:mm:ss"); } }



        private DateTime _updateTime = DateTime.Now;
        /// <summary>
        /// <para>更新时间</para>
        /// </summary>
        public DateTime UpdateTime
        {
            get { return _updateTime; }
            set { _updateTime = value; }
        }

        public string UpdateTimeStr { get { return _updateTime.ToString("yyyy-MM-dd HH:mm:ss"); } }



        #endregion

        #region 虚拟字段

        public string UserName;


        #endregion
    }
}
